﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class adminstrator_adminMenu : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserName"] == null && Session["UserNo"] == null)//没有经过正常选择打开页面
            Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script type='text/javascript'>" +
              "alert('登录超时（或未登录），请重新登录！');parent.location.href='../login.aspx'</script>", false);
        else
           labelUser.Text = "管理员端-》欢迎您：" + Session["UserName"] + "(" + Session["UserNo"] + ")";
    }
}